/**   
* @Title: SpiderSeedJob.java
* @Package org.xaoyaoyao.spider.job
* @Description: TODO
* @author xaoyaoyao
* @date Jan 25, 2019 5:29:52 PM
* @version V1.0   
*/
package org.xaoyaoyao.spider.job;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;
import org.xaoyaoyao.spider.service.SpiderSeedInitialization;

import lombok.extern.slf4j.Slf4j;

/**
 * @ClassName: SpiderSeedJob
 * @Description: TODO
 * @author xaoyaoyao
 * @date Jan 25, 2019 5:29:52 PM
 * 
 */
@Slf4j
@Service
public class SpiderSeedJob {

	@Autowired
	private SpiderSeedInitialization spiderSeedInitialization;

	@Scheduled(cron = "0 0/20 * * * ?")
	public void execute() {
		log.info(">>>>>>>> SpiderSeedJob Start！！！");
		try {
			spiderSeedInitialization.execute();
		} catch (Exception e) {
			log.error(e.getMessage(), e);
		}
		log.info(">>>>>>>> SpiderSeedJob End！！！");
	}

}
